#include <iostream.h>
#include <iomanip.h>

int main(){
    int const arraySize = 10;
    int a[arraySize] = {4,1,3,8,5,9,14,15,16,17};
    for (int i = 0; i < arraySize/2 ; i++){
        int b = a[i];
        a[i] = a[arraySize-1-i];
        a[arraySize-1-i]=b;
    }
    
   cout << "Перевёрнутый массив:" << endl;
   for (int i =0; i < arraySize; i++)
        cout << a[i] << endl;
 
  return 0;  
}

